//package com.xingliaoapp.live.activity;
//
//import android.app.Activity;
//import android.content.Intent;
//import android.os.Bundle;
//import android.view.View;
//
//import com.nostra13.universalimageloader.core.ImageLoader;
//import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
//import R;
//
//import butterknife.ButterKnife;
//import butterknife.InjectView;
//import uk.co.senab.photoview.PhotoView;
//import uk.co.senab.photoview.PhotoViewAttacher;
//
//public class ImageViewerActivity extends Activity {
//
//    @InjectView(R.id.iv_photo)
//    PhotoView mPhotoView;
//
//    public static final String IMAGE_VIEW_URL_TRANSFER = "image_url";
//    private String mUrl;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_image_viewer);
//        ButterKnife.inject(this);
//
//        mPhotoView.setOnPhotoTapListener(new PhotoViewAttacher.OnPhotoTapListener() {
//            @Override
//            public void onPhotoTap(View view, float x, float y) {
//                ImageViewerActivity.this.finish();
//            }
//        });
//
//        if (!ImageLoader.getInstance().isInited()) {
//            ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()).build();
//            ImageLoader.getInstance().init(config);
//        }
//
//        Intent intent = getIntent();
//        if(intent != null){
//            mUrl = intent.getStringExtra(IMAGE_VIEW_URL_TRANSFER);
//            ImageLoader.getInstance().displayImage(mUrl, mPhotoView);
//        }
//
//    }
//
//}